package com.baosight.risk.mapper.ridc;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.ridc.entity.RidcRiskAdvance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RidcRiskAdvanceMapper extends BaseMapper<RidcRiskAdvance> {

    Integer deleteRidcRiskAdvanceBydocRiskId(@Param("docRiskId") String docRiskId);

    List<RidcRiskAdvance> getRidcRiskAdvanceBydocRidcRiskId(@Param("ridcRiskId") String ridcRiskId);

    Integer deleteRidcRiskAdByIds(@Param("ids") List<String> ids);

    Integer selectMaxRowOrder(@Param("advance") RidcRiskAdvance ridcRiskAdvance);

    RidcRiskAdvance selectLess(@Param("advance") RidcRiskAdvance ridcRiskAdvance);

    RidcRiskAdvance selectBigger(@Param("advance") RidcRiskAdvance ridcRiskAdvance);
}